package joney.main.preference;


import joney.model.DataModel;

import org.eclipse.jface.preference.FileFieldEditor;
import org.eclipse.ui.IWorkbench;

public class FilePreferencePage extends DefaultPreferencePage {

	public static final String MAIN_FILE_PATH= "Main File Path";
	

	protected void createFieldEditors() {
		FileFieldEditor  mainFile = new FileFieldEditor(MAIN_FILE_PATH, MAIN_FILE_PATH, 
				getFieldEditorParent());
		
		this.addField(mainFile);
	}

	public void init(IWorkbench workbench) {
		
	}
	
	void initDefaultValues() {
	}

	protected void performApply()
	{
		super.performApply();
		
		DataModel.fireExpensesUpdated();
	}
	
}
